package com.zhouzj.task.springcloud.user.repo;

import com.zhouzj.task.springcloud.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author: zhouzhijun
 * @Date: 2021/8/5 13:32
 */

public interface UserRepo extends JpaRepository<User, Integer> {

    User findFirstByEmail(String email);

    Boolean existsByEmail(String email);

    Boolean existsByEmailAndPassword(String email, String password);

}
